package com.ll.gulimall.serach.feign;

import com.ll.common.utils.R;
import com.ll.gulimall.serach.vo.BrandEntity;
import com.ll.gulimall.serach.vo.SearchResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "gulimall-product")
public interface ProductFeignService {


    /**
     * 根据Id查询商品
     */
    @GetMapping("/product/brand/info/{brandIds}")
    public R info(@RequestParam("brandIds") List<Long> brandIds);


    /**
     * 信息
     */
    @GetMapping("/product/attr/info/{attrId}")
    public R info(@RequestParam("attrId") Long attrId);

    /**
     * 信息
     */
    @RequestMapping("/product/category/infoFeign/{catId}")
    public R infoFeign(@RequestParam("catId") Long catId);

}
